<?php
//
//	file: includes/aucp/class_aucp.php
//	begin: 19/01/2008
//	$Author: christopher $
//	$Revision: 29 $
//	$Date: 2008-07-19 15:59:35 +0000 (Sat, 19 Jul 2008) $
//	license: http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
//
//	description: meta-loader for aucp

if ( !defined('IN_PHPBB') )
{
	die('Hacking attempt');
}

if ($aucp_start == true)
{
	return;
}
$aucp_start = true;

// functions
include($config->url('includes/aucp/aucp_functions'));

$here = dirname(__FILE__);
$pattern = "class_[a-zA-Z_]+";
$fh = opendir($here);
while (($path = readdir($fh)) !== false)
{
	if (ereg($pattern, $path))
	{
		include($here . '/' . $path);
	}
}
@closedir($here);
unset($fh, $here);

// stop if install directory still present
if ( file_exists(phpbb_realpath($config->root . 'installer')) )
{
	message_die(GENERAL_MESSAGE, 'Please remove installer/ directory');
}
?>